package com.example.mytayunapi.Service;

import com.example.mytayunapi.Entity.Share_postsInfo;
import com.example.mytayunapi.Entity.userInfo;
import com.example.mytayunapi.Vo.ShareUserInfo;
import com.example.mytayunapi.Vo.ShareUserProducts;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface share_postsInfoService {
    //
    List<ShareUserInfo> getSharePostsInfo();
    List<ShareUserInfo> getShareTitleInfo(String Share_title);
    Integer updateShareStatus(ShareUserInfo shareUserInfo);
    PageInfo<ShareUserInfo>  getPageInfo(int pageNum, int pageSize);
    List<ShareUserInfo> getSharePostsInfoStatus(String Share_status);
    List<ShareUserInfo> getSharePostsInfoStatusNa(String Share_status);
    List<ShareUserInfo> getSharetitleAndWord(@Param("keyword")String keyword, @Param("Share_status")String Share_status);
    List<ShareUserInfo> getShareTitle(@Param("keyword")String keyword);
    List<ShareUserInfo>  getShareTitleAndCate(@Param("word")String word);
    List<ShareUserInfo> getShareTitleAndCateStatus(@Param("keyword")String keyword, @Param("word")String word);
    List<ShareUserInfo> getSharePosts(@Param("Share_catagory")String Share_catagory);
    List<ShareUserProducts> getShareUserProducts(@Param("Product_id")Integer Product_id);

    List<ShareUserInfo> getSharePostsDetail(Integer Share_id);
    Integer deleteSharePosts(@Param("Share_id") Integer Share_id);
    List<ShareUserInfo> getSharePostsInfoByPeople(@Param("School_degree")String School_degree);
}
